/**
 * 存放模拟数据
 */
import { SubDeviceClass } from '../model/DataModels'
import {DeviceClass} from "../model/DataModels"

export let subDevices_1:Array<SubDeviceClass> = [
  {
    IP:"192.168.0.1",
    port:8881,
    name:"风扇1",
    status:true,
    belongRegion:"区域1",
    batteryRemainCapacity:20
  },{
    IP:"192.168.0.1",
    port:8882,
    name:"风扇2",
    status:false,
  belongRegion:"区域2",
  batteryRemainCapacity:15

  },{
  IP:"192.168.0.1",
  port:8883,
  name:"风扇3",
  status:true,
  belongRegion:"区域3",
  batteryRemainCapacity:80
}
]

export let subDevices_2:Array<SubDeviceClass> = [
  {
    IP:"192.168.0.1",
    port:8884,
    name:"抽水泵1",
    status:true,
    belongRegion:"区域1",
    batteryRemainCapacity:78
  },{
  IP:"192.168.0.1",
  port:8885,
  name:"抽水泵2",
  status:false,
  belongRegion:"区域2",
  batteryRemainCapacity:25
}
]

export let subDevices_3:Array<SubDeviceClass> = [
  {
    IP:"192.168.0.1",
    port:8886,
    name:"温控灯1",
    status:true,
    belongRegion:"区域1",
    batteryRemainCapacity:88
  },{
  IP:"192.168.0.1",
  port:8887,
  name:"温控灯2",
  status:true,
  belongRegion:"区域2",
  batteryRemainCapacity:90
},{
  IP:"192.168.0.1",
  port:8888,
  name:"温控灯3",
  status:false,
  belongRegion:"区域3",
  batteryRemainCapacity:24
},{
  IP:"192.168.0.1",
  port:8889,
  name:"温控灯4",
  status:true,
  belongRegion:"区域4",
  batteryRemainCapacity:100
}
]

export let devices:Array<DeviceClass>=[
  {
    name:"风扇",
    subDevices:subDevices_1
  },
  {
    name:"抽水泵",
    subDevices:subDevices_2
  },
  {
    name:"温控灯",
    subDevices:subDevices_3
  }

]